const shopId = "shoppingId";
const carList = "carList";

export const getItemId = () => JSON.parse(localStorage.getItem(shopId));

export const setItemId = (id) =>
  localStorage.setItem(shopId, JSON.stringify(id));

export const getCarItemId = () => JSON.parse(localStorage.getItem(carList));

export const setCarItemId = (data) =>
  localStorage.setItem(carList, JSON.stringify(data));
